// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import router from './router';
import FastClick from 'fastclick'
import App from './App'
import Axios from './axios'
import Store from './store'
import './login'
import './config/rem'          // 使用rem自适应屏幕大小  
import './config/common.less'   // 重置默认样式 
import VueProgressBar from 'vue-progressbar'   // 请求进度条插件 

FastClick.attach(document.body)  // 添加 Fastclick 移除移动端点击300ms延迟
Vue.use(VueProgressBar, {
  color: 'skyBlue',
  failedColor: 'red',
  height: '2px'
})

import  { ToastPlugin, ConfirmPlugin, AlertPlugin } from 'vux'
Vue.use(ToastPlugin)
Vue.use(ConfirmPlugin)
Vue.use(AlertPlugin)

Vue.config.productionTip = false
Vue.prototype.$ajax = Axios

/* eslint-disable no-new */
export default new Vue({
  router,
  Axios,
  Store,
  render: h => h(App)
}).$mount('#app-box')
